package com.yuanluludev.app.vm

import com.yuanluludev.app.room.student.Student
import com.yuanluludev.app.room.student.StudentHelper


class ImageRepository {

    suspend fun insertStudent(student: Student) = StudentHelper.insertStudent(student)

    suspend fun getAllStudent(): List<Student> = StudentHelper.getAllStudent()

    suspend fun queryAllStudentOrderByUidDesc(): List<Student> = StudentHelper.queryAllStudentOrderByUidDesc()

    suspend fun deleteStudentByID(uid: Long) = StudentHelper.deleteStudentByID(uid)

    suspend fun updateStudent(student: Student) = StudentHelper.updateStudent(student)

}